﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RuiJing.Web.Areas.Manage.Models.ProductModels.PictureTypeModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	图片类型
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
    <%=Html.ActionLink("新增", "editpictype", new { id = "new" }, new { @class = "a2" }) %>
    <table width="100%" class="table">
        <tr class="bar">
            <th>中文名</th>
            <th>英文名</th>
            <th>是否默认</th>
            <th>操作</th>
        </tr>
        <% foreach (var item in Model.Types) %>
        <% { %>
        <tr>
            <td><%=item.Name_Ch %></td>
            <td><%=item.Name_En %></td>
            <td><%=item.IsDefault ? "默认" : ""%></td>
            <td>
                <%=Html.ActionLink("编辑", "editpictype", new { id = "edit", a = item.ID }, new { @class = "a2" }) %>
                <% if (!item.IsDefault) %>
                <% { %>
                <%=Html.ActionLink("删除", "delpictype", new { id = item.ID }, new { @class = "a2" })%>
                <% } %>
            </td>
        </tr>
        <% } %>
    </table>
</div>
</asp:Content>
